import request from "@/utils/request";

// 搜索关键字、搜索历史、热门搜索
export const getSearchData = () => {
  return request({
    url:'/api/search/index'
  })
}

// 搜索好物数量
export const getGoodsCountData = () => {
  return request({
    url:'/api/goods/count'
  })
}

// 搜索联想建议
export const getSameSuggestion = params => {
  return request({
    url:'/api/search/helper',
    params
  })
}

// 获取商品列表 
export const getGoodsListData = params => {
  return request({
    url:'/api/goods/list',
    params
  })
}